home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 July / Macworld (1999-07).dmg / Shareware World / Info / For Developers / Mops 3.4.sea / Mops source / Toolbox classes / QD1 < prev    next >
MacBinary  |  1996-07-28  |  5.0 KB  |  [TEXT/MSET]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: QD1

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sun Jul 28 00:37:29 1996, modified Sun Jul 28 00:37:29 1996, creator 'MSET', type ASCII, 4524 bytes "QD1" , at 0x122c 381 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
0% TrID Sybase iAnywhere database files default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MSET]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 03 51 44 31 00 00 00 | 00 00 00 00 00 00 00 00 |..QD1...|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 53 45 | 54 01 00 00 00 00 00 00 |.TEXTMSE|T.......|
|00000050| 00 00 00 00 00 11 ac 00 | 00 01 7d ae 20 9f 09 ae |........|..}. ...|
|00000060| 20 9f 09 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 54 85 00 00 |........|....T...|
|00000080| 5c 20 71 64 31 20 2d 20 | 6d 6f 72 65 20 51 75 69 |\ qd1 - |more Qui|
|00000090| 63 6b 44 72 61 77 20 63 | 6c 61 73 73 65 73 0d 0d |ckDraw c|lasses..|
|000000a0| 5c 20 4a 75 6c 79 20 39 | 36 09 6d 72 68 09 43 6f |\ July 9|6.mrh.Co|
|000000b0| 6e 76 65 72 74 65 64 20 | 66 72 6f 6d 20 4e 65 6f |nverted |from Neo|
|000000c0| 6e 20 74 6f 20 4d 6f 70 | 73 2e 0d 0d 0d 3a 20 2b |n to Mop|s....: +|
|000000d0| 70 61 69 72 20 20 7b 20 | 78 31 20 79 31 20 78 32 |pair { |x1 y1 x2|
|000000e0| 20 79 32 20 2d 2d 20 78 | 31 2b 79 31 20 78 32 2b | y2 -- x|1+y1 x2+|
|000000f0| 79 32 20 7d 0d 09 78 31 | 20 78 32 20 2b 20 79 31 |y2 }..x1| x2 + y1|
|00000100| 20 79 32 20 2b 20 20 3b | 0d 0d 0d 5c 20 49 6e 74 | y2 + ;|...\ Int|
|00000110| 65 72 66 61 63 65 20 63 | 6c 61 73 73 20 66 6f 72 |erface c|lass for|
|00000120| 20 51 44 20 70 69 63 74 | 75 72 65 20 73 75 70 70 | QD pict|ure supp|
|00000130| 6f 72 74 0d 0d 73 79 73 | 63 61 6c 6c 09 4f 70 65 |ort..sys|call.Ope|
|00000140| 6e 50 69 63 74 75 72 65 | 0d 73 79 73 63 61 6c 6c |nPicture|.syscall|
|00000150| 09 43 6c 6f 73 65 50 69 | 63 74 75 72 65 0d 73 79 |.ClosePi|cture.sy|
|00000160| 73 63 61 6c 6c 09 47 65 | 74 50 69 63 74 75 72 65 |scall.Ge|tPicture|
|00000170| 0d 73 79 73 63 61 6c 6c | 09 44 72 61 77 50 69 63 |.syscall|.DrawPic|
|00000180| 74 75 72 65 0d 73 79 73 | 63 61 6c 6c 09 4b 69 6c |ture.sys|call.Kil|
|00000190| 6c 50 69 63 74 75 72 65 | 0d 0d 3a 63 6c 61 73 73 |lPicture|..:class|
|000001a0| 20 20 50 49 43 54 55 52 | 45 20 20 73 75 70 65 72 | PICTUR|E super|
|000001b0| 7b 20 6f 62 6a 65 63 74 | 20 7d 0d 0d 09 68 61 6e |{ object| }...han|
|000001c0| 64 6c 65 09 70 69 63 48 | 6e 64 6c 0d 09 69 6e 74 |dle.picH|ndl..int|
|000001d0| 09 09 72 65 73 49 44 09 | 09 5c 20 72 65 73 6f 75 |..resID.|.\ resou|
|000001e0| 72 63 65 20 49 44 20 69 | 66 20 69 74 20 69 73 20 |rce ID i|f it is |
|000001f0| 61 20 72 65 73 6f 75 72 | 63 65 0d 09 72 65 63 74 |a resour|ce..rect|
|00000200| 09 44 65 73 74 52 65 63 | 74 09 5c 20 64 65 73 74 |.DestRec|t.\ dest|
|00000210| 69 6e 61 74 69 6f 6e 20 | 72 65 63 74 61 6e 67 6c |ination |rectangl|
|00000220| 65 20 66 6f 72 20 64 72 | 61 77 69 6e 67 0d 0d 3a |e for dr|awing..:|
|00000230| 6d 20 4f 50 45 4e 3a 09 | 5c 20 28 20 6c 20 74 20 |m OPEN:.|\ ( l t |
|00000240| 72 20 62 20 2d 2d 20 29 | 20 20 4f 70 65 6e 73 20 |r b -- )| Opens |
|00000250| 61 20 6e 65 77 20 70 69 | 63 74 20 77 69 74 68 20 |a new pi|ct with |
|00000260| 67 69 76 65 6e 20 66 72 | 61 6d 65 0d 09 70 75 74 |given fr|ame..put|
|00000270| 3a 20 74 65 6d 70 52 65 | 63 74 0d 09 74 65 6d 70 |: tempRe|ct..temp|
|00000280| 52 65 63 74 20 20 4f 70 | 65 6e 50 69 63 74 75 72 |Rect Op|enPictur|
|00000290| 65 20 20 70 75 74 3a 20 | 70 69 63 48 6e 64 6c 0d |e put: |picHndl.|
|000002a0| 3b 6d 0d 0d 3a 6d 20 43 | 4c 4f 53 45 3a 09 5c 20 |;m..:m C|LOSE:.\ |
|000002b0| 28 20 2d 2d 20 29 20 20 | 74 65 72 6d 69 6e 61 74 |( -- ) |terminat|
|000002c0| 65 73 20 74 68 69 73 20 | 70 69 63 74 75 72 65 20 |es this |picture |
|000002d0| 64 65 66 69 6e 69 74 69 | 6f 6e 0d 09 43 6c 6f 73 |definiti|on..Clos|
|000002e0| 65 50 69 63 74 75 72 65 | 20 20 3b 6d 0d 0d 3a 6d |ePicture| ;m..:m|
|000002f0| 20 49 4e 49 54 3a 09 5c | 20 28 20 72 65 73 49 44 | INIT:.\| ( resID|
|00000300| 20 2d 2d 20 29 0d 09 70 | 75 74 3a 20 20 72 65 73 | -- )..p|ut: res|
|00000310| 49 44 20 20 3b 6d 0d 0d | 3a 6d 20 47 45 54 4e 45 |ID ;m..|:m GETNE|
|00000320| 57 3a 09 5c 20 6c 6f 61 | 64 73 20 74 68 65 20 70 |W:.\ loa|ds the p|
|00000330| 69 63 74 75 72 65 20 66 | 72 6f 6d 20 61 20 72 65 |icture f|rom a re|
|00000340| 73 6f 75 72 63 65 20 66 | 69 6c 65 0d 09 67 65 74 |source f|ile..get|
|00000350| 3a 20 72 65 73 49 44 20 | 20 47 65 74 50 69 63 74 |: resID | GetPict|
|00000360| 75 72 65 20 20 70 75 74 | 3a 20 70 69 63 48 6e 64 |ure put|: picHnd|
|00000370| 6c 0d 09 70 74 72 3a 20 | 70 69 63 48 6e 64 6c 20 |l..ptr: |picHndl |
|00000380| 20 32 2b 20 67 65 74 3a | 20 63 6c 61 73 73 5f 61 | 2+ get:| class_a|
|00000390| 73 3e 20 72 65 63 74 20 | 20 70 75 74 3a 20 64 65 |s> rect | put: de|
|000003a0| 73 74 52 65 63 74 20 20 | 3b 6d 0d 0d 3a 6d 20 53 |stRect |;m..:m S|
|000003b0| 49 5a 45 3a 09 5c 20 28 | 20 77 20 68 20 2d 2d 20 |IZE:.\ (| w h -- |
|000003c0| 29 20 20 53 65 74 73 20 | 73 69 7a 65 20 69 6e 20 |) Sets |size in |
|000003d0| 70 69 78 65 6c 73 20 6f | 66 20 64 65 73 74 20 72 |pixels o|f dest r|
|000003e0| 65 63 74 0d 09 67 65 74 | 54 6f 70 3a 20 20 64 65 |ect..get|Top: de|
|000003f0| 73 74 52 65 63 74 20 20 | 2b 70 61 69 72 20 20 70 |stRect |+pair p|
|00000400| 75 74 42 6f 74 3a 20 64 | 65 73 74 52 65 63 74 20 |utBot: d|estRect |
|00000410| 20 3b 6d 0d 0d 3a 6d 20 | 47 4f 54 4f 3a 20 20 7b | ;m..:m |GOTO: {|
|00000420| 20 78 20 79 20 2d 2d 20 | 7d 09 5c 20 20 4d 6f 76 | x y -- |}.\ Mov|
|00000430| 65 73 20 64 65 73 74 20 | 72 65 63 74 20 74 6f 20 |es dest |rect to |
|00000440| 67 69 76 65 6e 20 6c 6f | 63 61 74 69 6f 6e 0d 09 |given lo|cation..|
|00000450| 73 69 7a 65 3a 20 64 65 | 73 74 52 65 63 74 20 20 |size: de|stRect |
|00000460| 78 20 79 20 20 70 75 74 | 54 6f 70 3a 20 64 65 73 |x y put|Top: des|
|00000470| 74 52 65 63 74 0d 09 73 | 69 7a 65 3a 20 73 65 6c |tRect..s|ize: sel|
|00000480| 66 20 20 3b 6d 0d 0d 0d | 3a 6d 20 44 52 41 57 3a |f ;m...|:m DRAW:|
|00000490| 09 5c 20 28 20 2d 2d 20 | 29 20 20 44 72 61 77 73 |.\ ( -- |) Draws|
|000004a0| 20 74 68 65 20 70 69 63 | 74 75 72 65 20 69 6e 20 | the pic|ture in |
|000004b0| 64 65 73 74 52 65 63 74 | 0d 09 67 65 74 3a 20 70 |destRect|..get: p|
|000004c0| 69 63 48 6e 64 6c 20 20 | 61 64 64 72 3a 20 64 65 |icHndl |addr: de|
|000004d0| 73 74 52 65 63 74 20 20 | 44 72 61 77 50 69 63 74 |stRect |DrawPict|
|000004e0| 75 72 65 20 20 3b 6d 0d | 0d 3a 6d 20 44 49 53 50 |ure ;m.|.:m DISP|
|000004f0| 3a 09 5c 20 28 20 78 20 | 79 20 72 65 73 49 44 20 |:.\ ( x |y resID |
|00000500| 2d 2d 20 29 20 20 43 6f | 6d 62 69 6e 65 73 20 74 |-- ) Co|mbines t|
|00000510| 68 65 20 61 63 74 69 6f | 6e 73 20 6f 66 20 69 6e |he actio|ns of in|
|00000520| 69 74 3a 2c 20 67 65 74 | 4e 65 77 3a 2c 0d 09 09 |it:, get|New:,...|
|00000530| 09 5c 20 20 67 6f 74 6f | 3a 20 26 20 64 72 61 77 |.\ goto|: & draw|
|00000540| 3a 0d 09 69 6e 69 74 3a | 20 73 65 6c 66 20 20 67 |:..init:| self g|
|00000550| 65 74 4e 65 77 3a 20 73 | 65 6c 66 20 20 67 6f 74 |etNew: s|elf got|
|00000560| 6f 3a 20 73 65 6c 66 20 | 20 64 72 61 77 3a 20 73 |o: self | draw: s|
|00000570| 65 6c 66 20 20 3b 6d 0d | 0d 3a 6d 20 52 45 4c 45 |elf ;m.|.:m RELE|
|00000580| 41 53 45 3a 09 09 5c 20 | 28 20 2d 2d 20 29 20 20 |ASE:..\ |( -- ) |
|00000590| 64 69 73 70 6f 73 65 73 | 20 6f 66 20 70 69 63 74 |disposes| of pict|
|000005a0| 75 72 65 20 68 65 61 70 | 0d 09 67 65 74 3a 20 70 |ure heap|..get: p|
|000005b0| 69 63 48 6e 64 6c 20 20 | 4b 69 6c 6c 50 69 63 74 |icHndl |KillPict|
|000005c0| 75 72 65 20 20 3b 6d 0d | 0d 3b 63 6c 61 73 73 0d |ure ;m.|.;class.|
|000005d0| 0d 0d 5c 20 72 65 73 6f | 75 72 63 65 2d 62 61 73 |..\ reso|urce-bas|
|000005e0| 65 64 20 49 63 6f 6e 0d | 0d 73 79 73 63 61 6c 6c |ed Icon.|.syscall|
|000005f0| 09 47 65 74 49 63 6f 6e | 0d 73 79 73 63 61 6c 6c |.GetIcon|.syscall|
|00000600| 09 50 6c 6f 74 49 63 6f | 6e 0d 0d 3a 63 6c 61 73 |.PlotIco|n..:clas|
|00000610| 73 20 49 43 4f 4e 20 20 | 73 75 70 65 72 7b 20 6f |s ICON |super{ o|
|00000620| 62 6a 65 63 74 20 7d 0d | 0d 09 68 61 6e 64 6c 65 |bject }.|..handle|
|00000630| 09 74 68 65 48 61 6e 64 | 6c 65 0d 09 69 6e 74 09 |.theHand|le..int.|
|00000640| 09 72 65 73 49 44 0d 09 | 72 65 63 74 09 74 68 65 |.resID..|rect.the|
|00000650| 52 65 63 74 0d 0d 3a 6d | 20 49 4e 49 54 3a 09 5c |Rect..:m| INIT:.\|
|00000660| 20 28 20 72 65 73 49 44 | 20 2d 2d 20 29 20 20 73 | ( resID| -- ) s|
|00000670| 65 74 73 20 74 68 65 20 | 72 65 73 6f 75 72 63 65 |ets the |resource|
|00000680| 20 49 44 0d 09 70 75 74 | 3a 20 72 65 73 49 44 20 | ID..put|: resID |
|00000690| 20 3b 6d 0d 0d 3a 6d 20 | 47 45 54 4e 45 57 3a 09 | ;m..:m |GETNEW:.|
|000006a0| 5c 20 6c 6f 61 64 73 20 | 74 68 65 20 69 63 6f 6e |\ loads |the icon|
|000006b0| 20 66 72 6f 6d 20 61 20 | 72 65 73 6f 75 72 63 65 | from a |resource|
|000006c0| 20 66 69 6c 65 0d 09 67 | 65 74 3a 20 72 65 73 49 | file..g|et: resI|
|000006d0| 44 20 20 63 61 6c 6c 20 | 47 65 74 49 63 6f 6e 20 |D call |GetIcon |
|000006e0| 20 20 70 75 74 3a 20 74 | 68 65 48 61 6e 64 6c 65 | put: t|heHandle|
|000006f0| 20 20 3b 6d 0d 0d 3a 6d | 20 47 4f 54 4f 3a 20 20 | ;m..:m| GOTO: |
|00000700| 7b 20 78 20 79 20 2d 2d | 20 7d 09 5c 20 20 6d 6f |{ x y --| }.\ mo|
|00000710| 76 65 73 20 74 6f 70 4c | 65 66 74 20 63 6f 72 6e |ves topL|eft corn|
|00000720| 65 72 20 74 6f 20 78 2c | 79 0d 09 78 20 79 20 20 |er to x,|y..x y |
|00000730| 78 20 33 32 20 2b 20 79 | 20 33 32 20 2b 20 20 70 |x 32 + y| 32 + p|
|00000740| 75 74 3a 20 74 68 65 52 | 65 63 74 20 20 3b 6d 0d |ut: theR|ect ;m.|
|00000750| 0d 3a 6d 20 44 52 41 57 | 3a 09 5c 20 64 72 61 77 |.:m DRAW|:.\ draw|
|00000760| 73 20 74 68 65 20 69 63 | 6f 6e 20 61 74 20 63 75 |s the ic|on at cu|
|00000770| 72 72 65 6e 74 20 6c 6f | 63 61 74 69 6f 6e 0d 09 |rrent lo|cation..|
|00000780| 61 64 64 72 3a 20 74 68 | 65 52 65 63 74 20 20 67 |addr: th|eRect g|
|00000790| 65 74 3a 20 74 68 65 48 | 61 6e 64 6c 65 20 20 50 |et: theH|andle P|
|000007a0| 6c 6f 74 49 63 6f 6e 20 | 20 3b 6d 0d 0d 3a 6d 20 |lotIcon | ;m..:m |
|000007b0| 44 49 53 50 3a 09 5c 20 | 28 20 78 20 79 20 72 65 |DISP:.\ |( x y re|
|000007c0| 73 49 44 20 2d 2d 20 29 | 20 20 43 6f 6d 62 69 6e |sID -- )| Combin|
|000007d0| 65 73 20 74 68 65 20 61 | 63 74 69 6f 6e 73 20 6f |es the a|ctions o|
|000007e0| 66 20 69 6e 69 74 3a 2c | 20 67 65 74 4e 65 77 3a |f init:,| getNew:|
|000007f0| 2c 0d 09 09 09 5c 20 20 | 67 6f 74 6f 3a 20 26 20 |,....\ |goto: & |
|00000800| 64 72 61 77 3a 0d 09 69 | 6e 69 74 3a 20 73 65 6c |draw:..i|nit: sel|
|00000810| 66 20 20 67 65 74 4e 65 | 77 3a 20 73 65 6c 66 20 |f getNe|w: self |
|00000820| 20 67 6f 74 6f 3a 20 73 | 65 6c 66 20 20 64 72 61 | goto: s|elf dra|
|00000830| 77 3a 20 73 65 6c 66 20 | 20 3b 6d 0d 0d 3b 63 6c |w: self | ;m..;cl|
|00000840| 61 73 73 0d 0d 0d 0d 3a | 63 6c 61 73 73 20 71 64 |ass....:|class qd|
|00000850| 42 69 74 4d 61 70 20 20 | 73 75 70 65 72 7b 20 6f |BitMap |super{ o|
|00000860| 62 6a 65 63 74 20 7d 0d | 0d 09 76 61 72 09 09 42 |bject }.|..var..B|
|00000870| 61 73 65 41 64 64 72 0d | 09 69 6e 74 09 09 52 6f |aseAddr.|.int..Ro|
|00000880| 77 42 79 74 65 73 0d 09 | 72 65 63 74 09 42 6e 64 |wBytes..|rect.Bnd|
|00000890| 73 52 65 63 74 0d 0d 3a | 6d 20 50 55 54 3a 09 09 |sRect..:|m PUT:..|
|000008a0| 5c 20 28 20 61 64 64 72 | 20 6e 20 20 6c 20 74 20 |\ ( addr| n l t |
|000008b0| 72 20 62 20 2d 2d 20 29 | 0d 09 70 75 74 3a 20 20 |r b -- )|..put: |
|000008c0| 62 6e 64 73 52 65 63 74 | 20 20 70 75 74 3a 20 72 |bndsRect| put: r|
|000008d0| 6f 77 42 79 74 65 73 20 | 20 70 75 74 3a 20 62 61 |owBytes | put: ba|
|000008e0| 73 65 41 64 64 72 20 20 | 3b 6d 0d 0d 3b 63 6c 61 |seAddr |;m..;cla|
|000008f0| 73 73 0d 0d 0d 5c 20 72 | 6f 75 6e 64 65 64 20 72 |ss...\ r|ounded r|
|00000900| 65 63 74 61 6e 67 6c 65 | 0d 0d 73 79 73 63 61 6c |ectangle|..syscal|
|00000910| 6c 09 46 72 61 6d 65 52 | 6f 75 6e 64 52 65 63 74 |l.FrameR|oundRect|
|00000920| 0d 73 79 73 63 61 6c 6c | 09 45 72 61 73 65 52 6f |.syscall|.EraseRo|
|00000930| 75 6e 64 52 65 63 74 0d | 73 79 73 63 61 6c 6c 09 |undRect.|syscall.|
|00000940| 46 69 6c 6c 52 6f 75 6e | 64 52 65 63 74 0d 73 79 |FillRoun|dRect.sy|
|00000950| 73 63 61 6c 6c 09 49 6e | 76 65 72 74 52 6f 75 6e |scall.In|vertRoun|
|00000960| 64 52 65 63 74 0d 73 79 | 73 63 61 6c 6c 09 50 61 |dRect.sy|scall.Pa|
|00000970| 69 6e 74 52 6f 75 6e 64 | 52 65 63 74 0d 0d 3a 63 |intRound|Rect..:c|
|00000980| 6c 61 73 73 20 52 6e 64 | 52 65 63 74 20 20 73 75 |lass Rnd|Rect su|
|00000990| 70 65 72 7b 20 72 65 63 | 74 20 7d 0d 0d 09 70 6f |per{ rec|t }...po|
|000009a0| 69 6e 74 09 6f 76 61 6c | 53 69 7a 65 09 09 5c 20 |int.oval|Size..\ |
|000009b0| 73 69 7a 65 20 69 6e 20 | 70 69 78 65 6c 73 20 6f |size in |pixels o|
|000009c0| 66 20 6f 76 61 6c 73 20 | 61 74 20 63 6f 72 6e 65 |f ovals |at corne|
|000009d0| 72 73 0d 0d 3a 6d 20 49 | 4e 49 54 3a 09 5c 20 28 |rs..:m I|NIT:.\ (|
|000009e0| 20 77 20 68 20 2d 2d 20 | 29 20 20 73 65 74 73 20 | w h -- |) sets |
|000009f0| 77 69 64 74 68 2c 20 68 | 65 69 67 68 74 20 6f 66 |width, h|eight of|
|00000a00| 20 63 6f 72 6e 65 72 73 | 0d 09 70 75 74 3a 20 6f | corners|..put: o|
|00000a10| 76 61 6c 53 69 7a 65 20 | 20 3b 6d 0d 0d 3a 6d 20 |valSize | ;m..:m |
|00000a20| 44 52 41 57 3a 09 5c 20 | 20 28 20 2d 2d 20 29 0d |DRAW:.\ | ( -- ).|
|00000a30| 09 5e 62 61 73 65 20 20 | 61 64 64 72 3a 20 6f 76 |.^base |addr: ov|
|00000a40| 61 6c 53 69 7a 65 20 20 | 46 72 61 6d 65 52 6f 75 |alSize |FrameRou|
|00000a50| 6e 64 52 65 63 74 20 20 | 3b 6d 0d 0d 3a 6d 20 50 |ndRect |;m..:m P|
|00000a60| 52 49 4e 54 3a 09 64 72 | 61 77 3a 20 20 73 65 6c |RINT:.dr|aw: sel|
|00000a70| 66 20 20 3b 6d 0d 0d 3a | 6d 20 43 4c 45 41 52 3a |f ;m..:|m CLEAR:|
|00000a80| 20 20 5e 62 61 73 65 20 | 20 61 64 64 72 3a 20 6f | ^base | addr: o|
|00000a90| 76 61 6c 53 49 7a 65 20 | 20 45 72 61 73 65 52 6f |valSIze | EraseRo|
|00000aa0| 75 6e 64 52 65 63 74 20 | 20 3b 6d 0d 0d 3a 6d 20 |undRect | ;m..:m |
|00000ab0| 46 49 4c 4c 3a 20 20 7b | 20 5e 70 61 74 74 65 72 |FILL: {| ^patter|
|00000ac0| 6e 20 2d 2d 20 7d 09 5c | 20 66 69 6c 6c 73 20 72 |n -- }.\| fills r|
|00000ad0| 65 63 74 20 77 69 74 68 | 20 70 61 74 74 65 72 6e |ect with| pattern|
|00000ae0| 0d 09 5e 62 61 73 65 20 | 20 61 64 64 72 3a 20 6f |..^base | addr: o|
|00000af0| 76 61 6c 53 69 7a 65 20 | 20 5e 70 61 74 74 65 72 |valSize | ^patter|
|00000b00| 6e 20 20 46 69 6c 6c 52 | 6f 75 6e 64 52 65 63 74 |n FillR|oundRect|
|00000b10| 20 20 3b 6d 0d 0d 3a 6d | 20 43 45 4e 54 45 52 3a | ;m..:m| CENTER:|
|00000b20| 09 7b 20 5c 20 78 20 79 | 20 2d 2d 20 78 20 79 20 |.{ \ x y| -- x y |
|00000b30| 7d 0d 09 73 69 7a 65 3a | 20 73 65 6c 66 20 20 32 |}..size:| self 2|
|00000b40| 2f 20 20 2d 3e 20 79 20 | 20 32 2f 20 2d 3e 20 78 |/ -> y | 2/ -> x|
|00000b50| 0d 09 67 65 74 58 3a 20 | 74 6f 70 4c 20 20 78 20 |..getX: |topL x |
|00000b60| 2b 20 20 20 20 67 65 74 | 59 3a 20 74 6f 70 4c 20 |+ get|Y: topL |
|00000b70| 79 20 2b 20 20 3b 6d 0d | 0d 3a 6d 20 49 4e 56 45 |y + ;m.|.:m INVE|
|00000b80| 52 54 3a 09 5c 20 28 20 | 2d 2d 20 29 0d 09 5e 62 |RT:.\ ( |-- )..^b|
|00000b90| 61 73 65 20 20 61 64 64 | 72 3a 20 6f 76 61 6c 53 |ase add|r: ovalS|
|00000ba0| 69 7a 65 20 20 49 6e 76 | 65 72 74 52 6f 75 6e 64 |ize Inv|ertRound|
|00000bb0| 52 65 63 74 20 20 3b 6d | 0d 0d 3a 6d 20 50 41 49 |Rect ;m|..:m PAI|
|00000bc0| 4e 54 3a 09 5c 20 28 20 | 2d 2d 20 29 0d 09 5e 62 |NT:.\ ( |-- )..^b|
|00000bd0| 61 73 65 20 20 61 64 64 | 72 3a 20 6f 76 61 6c 53 |ase add|r: ovalS|
|00000be0| 69 7a 65 20 20 50 61 69 | 6e 74 52 6f 75 6e 64 52 |ize Pai|ntRoundR|
|00000bf0| 65 63 74 20 20 20 3b 6d | 0d 0d 3b 63 6c 61 73 73 |ect ;m|..;class|
|00000c00| 0d 0d 0d 5c 20 51 75 69 | 63 6b 44 72 61 77 20 6f |...\ Qui|ckDraw o|
|00000c10| 76 61 6c 73 20 2d 20 64 | 61 74 61 20 69 73 20 73 |vals - d|ata is s|
|00000c20| 61 6d 65 20 61 73 20 61 | 20 52 65 63 74 0d 0d 0d |ame as a| Rect...|
|00000c30| 73 79 73 63 61 6c 6c 09 | 46 72 61 6d 65 4f 76 61 |syscall.|FrameOva|
|00000c40| 6c 0d 73 79 73 63 61 6c | 6c 09 45 72 61 73 65 4f |l.syscal|l.EraseO|
|00000c50| 76 61 6c 0d 73 79 73 63 | 61 6c 6c 09 50 61 69 6e |val.sysc|all.Pain|
|00000c60| 74 4f 76 61 6c 0d 73 79 | 73 63 61 6c 6c 09 46 69 |tOval.sy|scall.Fi|
|00000c70| 6c 6c 4f 76 61 6c 0d 73 | 79 73 63 61 6c 6c 09 49 |llOval.s|yscall.I|
|00000c80| 6e 76 65 72 74 4f 76 61 | 6c 0d 0d 3a 63 6c 61 73 |nvertOva|l..:clas|
|00000c90| 73 20 4f 76 61 6c 20 20 | 73 75 70 65 72 7b 20 72 |s Oval |super{ r|
|00000ca0| 65 63 74 20 7d 0d 0d 3a | 6d 20 44 52 41 57 3a 09 |ect }..:|m DRAW:.|
|00000cb0| 5c 20 28 20 2d 2d 20 29 | 0d 09 5e 62 61 73 65 20 |\ ( -- )|..^base |
|00000cc0| 20 46 72 61 6d 65 4f 76 | 61 6c 20 20 3b 6d 0d 0d | FrameOv|al ;m..|
|00000cd0| 3a 6d 20 43 4c 45 41 52 | 3a 09 5c 20 28 20 2d 2d |:m CLEAR|:.\ ( --|
|00000ce0| 20 29 0d 09 5e 62 61 73 | 65 20 20 45 72 61 73 65 | )..^bas|e Erase|
|00000cf0| 4f 76 61 6c 20 20 3b 6d | 0d 0d 3a 6d 20 50 41 49 |Oval ;m|..:m PAI|
|00000d00| 4e 54 3a 09 5c 20 28 20 | 2d 2d 20 29 0d 09 5e 62 |NT:.\ ( |-- )..^b|
|00000d10| 61 73 65 20 20 50 61 69 | 6e 74 4f 76 61 6c 20 20 |ase Pai|ntOval |
|00000d20| 3b 6d 0d 0d 3a 6d 20 46 | 49 4c 4c 3a 20 20 7b 20 |;m..:m F|ILL: { |
|00000d30| 5e 70 61 74 74 65 72 6e | 20 2d 2d 20 7d 0d 09 5e |^pattern| -- }..^|
|00000d40| 62 61 73 65 20 5e 70 61 | 74 74 65 72 6e 20 20 46 |base ^pa|ttern F|
|00000d50| 69 6c 6c 4f 76 61 6c 20 | 20 3b 6d 0d 0d 3a 6d 20 |illOval | ;m..:m |
|00000d60| 49 4e 56 45 52 54 3a 0d | 09 5e 62 61 73 65 20 20 |INVERT:.|.^base |
|00000d70| 49 6e 76 65 72 74 4f 76 | 61 6c 20 20 3b 6d 0d 0d |InvertOv|al ;m..|
|00000d80| 3b 63 6c 61 73 73 0d 0d | 0d 5c 20 56 61 72 69 61 |;class..|.\ Varia|
|00000d90| 62 6c 65 2d 6c 65 6e 67 | 74 68 20 69 6d 61 67 65 |ble-leng|th image|
|00000da0| 20 6f 62 6a 65 63 74 20 | 66 6f 72 20 62 69 74 20 | object |for bit |
|00000db0| 69 6d 61 67 65 73 0d 5c | 20 20 65 2e 67 2e 2c 20 |images.\| e.g., |
|00000dc0| 61 6e 20 49 63 6f 6e 20 | 77 6f 75 6c 64 20 68 61 |an Icon |would ha|
|00000dd0| 76 65 20 33 32 20 63 65 | 6c 6c 73 2c 20 72 6f 77 |ve 32 ce|lls, row|
|00000de0| 62 79 74 65 73 20 3d 20 | 34 0d 0d 73 79 73 63 61 |bytes = |4..sysca|
|00000df0| 6c 6c 09 43 6f 70 79 42 | 69 74 73 0d 73 79 73 63 |ll.CopyB|its.sysc|
|00000e00| 61 6c 6c 09 47 65 74 50 | 6f 72 74 0d 73 79 73 63 |all.GetP|ort.sysc|
|00000e10| 61 6c 6c 09 53 65 74 50 | 6f 72 74 0d 0d 3a 63 6c |all.SetP|ort..:cl|
|00000e20| 61 73 73 20 49 6d 61 67 | 65 20 20 73 75 70 65 72 |ass Imag|e super|
|00000e30| 7b 20 61 72 72 61 79 20 | 7d 0d 0d 09 76 61 72 09 |{ array |}...var.|
|00000e40| 09 42 61 73 65 41 64 64 | 72 0d 09 69 6e 74 09 09 |.BaseAdd|r..int..|
|00000e50| 52 6f 77 42 79 74 65 73 | 09 09 5c 20 53 6f 75 72 |RowBytes|..\ Sour|
|00000e60| 63 65 20 62 69 74 4d 61 | 70 0d 09 72 65 63 74 09 |ce bitMa|p..rect.|
|00000e70| 62 6e 64 73 52 65 63 74 | 0d 09 76 61 72 09 09 44 |bndsRect|..var..D|
|00000e80| 65 73 74 42 69 74 73 09 | 09 5c 20 61 64 64 72 20 |estBits.|.\ addr |
|00000e90| 6f 66 20 64 65 73 74 69 | 6e 61 74 69 6f 6e 20 62 |of desti|nation b|
|00000ea0| 69 74 20 69 6d 61 67 65 | 0d 09 69 6e 74 09 09 4d |it image|..int..M|
|00000eb0| 6f 64 65 0d 09 72 65 63 | 74 09 44 65 73 74 72 65 |ode..rec|t.Destre|
|00000ec0| 63 74 09 09 5c 20 44 65 | 73 74 69 6e 61 74 69 6f |ct..\ De|stinatio|
|00000ed0| 6e 20 72 65 63 74 20 66 | 6f 72 20 43 6f 70 79 42 |n rect f|or CopyB|
|00000ee0| 69 74 73 0d 0d 3a 6d 20 | 47 45 54 50 4f 52 54 3a |its..:m |GETPORT:|
|00000ef0| 09 09 5c 20 28 20 2d 2d | 20 29 20 20 53 65 74 73 |..\ ( --| ) Sets|
|00000f00| 20 74 68 65 20 73 6f 75 | 72 63 65 2c 20 64 65 73 | the sou|rce, des|
|00000f10| 74 69 6e 61 74 69 6f 6e | 20 62 69 74 6d 61 70 20 |tination| bitmap |
|00000f20| 70 74 72 73 0d 09 61 64 | 64 72 3a 20 64 65 73 74 |ptrs..ad|dr: dest|
|00000f30| 42 69 74 73 20 20 47 65 | 74 50 6f 72 74 20 20 32 |Bits Ge|tPort 2|
|00000f40| 20 2b 3a 20 64 65 73 74 | 42 69 74 73 0d 09 30 20 | +: dest|Bits..0 |
|00000f50| 20 5e 65 6c 65 6d 3a 20 | 73 65 6c 66 20 20 70 75 | ^elem: |self pu|
|00000f60| 74 3a 20 62 61 73 65 41 | 64 64 72 20 20 3b 6d 0d |t: baseA|ddr ;m.|
|00000f70| 0d 3a 6d 20 49 4e 49 54 | 3a 20 20 7b 20 74 68 65 |.:m INIT|: { the|
|00000f80| 4d 6f 64 65 20 72 42 79 | 74 65 73 20 74 6f 70 58 |Mode rBy|tes topX|
|00000f90| 20 74 6f 70 59 20 2d 2d | 20 7d 0d 09 74 68 65 4d | topY --| }..theM|
|00000fa0| 6f 64 65 20 20 70 75 74 | 3a 20 6d 6f 64 65 0d 09 |ode put|: mode..|
|00000fb0| 72 42 79 74 65 73 20 20 | 70 75 74 3a 20 52 6f 77 |rBytes |put: Row|
|00000fc0| 42 79 74 65 73 0d 09 74 | 6f 70 58 20 74 6f 70 59 |Bytes..t|opX topY|
|00000fd0| 20 20 70 75 74 54 6f 70 | 3a 20 62 6e 64 73 52 65 | putTop|: bndsRe|
|00000fe0| 63 74 0d 09 72 42 79 74 | 65 73 20 38 20 2a 20 74 |ct..rByt|es 8 * t|
|00000ff0| 6f 70 58 20 2b 09 09 09 | 09 09 09 09 5c 20 23 20 |opX +...|....\ # |
|00001000| 6f 66 20 62 69 74 73 20 | 69 6e 20 61 20 72 6f 77 |of bits |in a row|
|00001010| 20 2b 20 74 6f 70 58 0d | 09 6c 69 6d 69 74 3a 20 | + topX.|.limit: |
|00001020| 73 65 6c 66 20 20 77 69 | 64 74 68 3a 20 73 65 6c |self wi|dth: sel|
|00001030| 66 20 2a 20 72 42 79 74 | 65 73 20 2f 20 74 6f 70 |f * rByt|es / top|
|00001040| 59 20 2b 09 5c 20 23 20 | 6f 66 20 72 6f 77 73 20 |Y +.\ # |of rows |
|00001050| 2b 20 74 6f 70 79 0d 09 | 70 75 74 42 6f 74 3a 20 |+ topy..|putBot: |
|00001060| 62 6e 64 73 52 65 63 74 | 0d 09 67 65 74 50 6f 72 |bndsRect|..getPor|
|00001070| 74 3a 20 73 65 6c 66 20 | 20 3b 6d 0d 0d 3a 6d 20 |t: self | ;m..:m |
|00001080| 47 4f 54 4f 3a 20 20 7b | 20 78 20 20 79 20 2d 2d |GOTO: {| x y --|
|00001090| 20 7d 09 5c 20 4d 6f 76 | 65 73 20 6c 6f 63 61 74 | }.\ Mov|es locat|
|000010a0| 69 6f 6e 20 77 69 74 68 | 6f 75 74 20 64 72 61 77 |ion with|out draw|
|000010b0| 69 6e 67 0d 09 78 20 79 | 20 20 70 75 74 54 6f 70 |ing..x y| putTop|
|000010c0| 3a 20 64 65 73 74 52 65 | 63 74 0d 09 73 69 7a 65 |: destRe|ct..size|
|000010d0| 3a 20 62 6e 64 73 52 65 | 63 74 20 20 78 20 79 20 |: bndsRe|ct x y |
|000010e0| 2b 70 61 69 72 20 20 70 | 75 74 42 6f 74 3a 20 64 |+pair p|utBot: d|
|000010f0| 65 73 74 52 65 63 74 20 | 20 3b 6d 0d 0d 3a 6d 20 |estRect | ;m..:m |
|00001100| 44 52 41 57 3a 09 5c 20 | 28 20 2d 2d 20 29 20 20 |DRAW:.\ |( -- ) |
|00001110| 44 72 61 77 73 20 74 68 | 65 20 69 6d 61 67 65 20 |Draws th|e image |
|00001120| 61 74 20 69 74 73 20 63 | 75 72 72 65 6e 74 20 6c |at its c|urrent l|
|00001130| 6f 63 61 74 69 6f 6e 0d | 09 5e 62 61 73 65 20 20 |ocation.|.^base |
|00001140| 67 65 74 3a 20 64 65 73 | 74 42 69 74 73 20 20 61 |get: des|tBits a|
|00001150| 64 64 72 3a 20 62 6e 64 | 73 52 65 63 74 20 20 61 |ddr: bnd|sRect a|
|00001160| 64 64 72 3a 20 64 65 73 | 74 52 65 63 74 0d 09 67 |ddr: des|tRect..g|
|00001170| 65 74 3a 20 6d 6f 64 65 | 20 20 30 20 20 43 6f 70 |et: mode| 0 Cop|
|00001180| 79 42 69 74 73 20 20 3b | 6d 0d 0d 3a 6d 20 4d 4f |yBits ;|m..:m MO|
|00001190| 56 45 54 4f 3a 09 09 5c | 20 28 20 78 20 79 20 2d |VETO:..\| ( x y -|
|000011a0| 2d 20 29 20 20 47 6f 74 | 6f 20 61 20 6c 6f 63 61 |- ) Got|o a loca|
|000011b0| 74 69 6f 6e 20 61 6e 64 | 20 64 72 61 77 20 74 68 |tion and| draw th|
|000011c0| 65 20 69 6d 61 67 65 0d | 09 67 6f 74 6f 3a 20 73 |e image.|.goto: s|
|000011d0| 65 6c 66 20 20 64 72 61 | 77 3a 20 73 65 6c 66 20 |elf dra|w: self |
|000011e0| 20 3b 6d 0d 0d 3a 6d 20 | 20 43 4c 41 53 53 49 4e | ;m..:m | CLASSIN|
|000011f0| 49 54 3a 0d 09 73 72 63 | 58 6f 72 20 32 20 30 20 |IT:..src|Xor 2 0 |
|00001200| 30 20 20 69 6e 69 74 3a | 20 73 65 6c 66 0d 09 30 |0 init:| self..0|
|00001210| 20 30 20 20 67 6f 74 6f | 3a 20 73 65 6c 66 20 20 | 0 goto|: self |
|00001220| 3b 6d 0d 0d 3b 63 6c 61 | 73 73 0d 0d 00 00 00 00 |;m..;cla|ss......|
|00001230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001280| 00 00 01 00 00 00 01 42 | 00 00 00 42 00 00 00 3b |.......B|...B...;|
|00001290| 00 00 09 c6 31 b4 00 10 | 7f 1f 06 00 00 00 00 00 |....1...|........|
|000012a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012b0| 03 51 44 31 02 00 00 00 | 50 61 72 74 53 49 54 21 |.QD1....|PartSIT!|
|000012c0| 00 00 00 00 00 00 00 00 | 00 01 82 57 00 00 00 00 |........|...W....|
|000012d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 b3 66 c2 7a 00 00 | 00 00 00 00 01 7d 00 00 |...f.z..|.....}..|
|00001300| 09 c7 31 b8 00 15 7f 1f | 06 00 00 00 00 01 00 00 |..1.....|........|
|00001310| 00 00 00 00 00 00 00 00 | 00 00 00 00 03 4c 00 00 |........|.....L..|
|00001320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 01 00 00 |........|........|
|00001330| 00 00 a7 99 4e 13 00 00 | 11 2c 00 00 00 04 00 00 |....N...|.,......|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001360| 00 00 a7 99 4e 13 00 00 | 01 1e 05 00 00 00 09 c8 |....N...|........|
|00001370| 31 c1 00 10 7f 1f 06 00 | 00 00 00 00 00 00 00 00 |1.......|........|
|00001380| 00 00 00 3e 00 00 07 2b | 00 00 00 00 00 00 00 00 |...>...+|........|
|00001390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013a0| 00 00 00 00 00 00 00 00 | 00 00 0a 2b 00 00 11 ac |........|...+....|
|000013b0| 00 00 11 ac 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013c0| 00 00 00 00 01 00 00 00 | 01 42 00 00 00 42 00 00 |........|.B...B..|
|000013d0| 00 3b 00 5d 27 58 12 00 | 00 00 00 1c 00 32 00 00 |.;.]'X..|.....2..|
|000013e0| 4d 49 46 4f 00 00 00 0a | 00 80 00 00 00 00 00 00 |MIFO....|........|
|000013f0| 00 5d 2e 48 08 4d 69 73 | 63 49 6e 66 6f 00 00 00 |.].H.Mis|cInfo...|
+--------+-------------------------+-------------------------+--------+--------+